package com.lzw.DailyAudit.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.hooya.fa.eu.biz.DailyAudit.entity.dto.B2cDataDTO;
import com.hooya.fa.eu.biz.DailyAudit.entity.dto.TempKcjlDailyHyDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2025-09-15
 */
@Mapper
public interface DailyTempXsjlMapper {

	@DS("fa_eu_daily")
    @Select("select sum(sl) as sl, cpbh, orderdate as date, chck as place, belongs from temp_xsjl where orderdate = #{currentDate} and (belongs like 'FDS%%' or belongs like 'COSTWAY%%') group by cpbh,orderdate,chck ,belongs")
	List<TempKcjlDailyHyDTO> getXsjlData(String currentDate);

	@DS("fa_eu_daily")
    List<B2cDataDTO> getXsjlB2CData(@Param("currentDate") String currentDate);
}
